using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

//Under Pivot Local Fix
public class CC3BlendShapesFixWindow : EditorWindow
{
    public static CC3BlendShapesFixWindow Instance;

    [MenuItem("PresenceTools/CC3/2.BlendShapes纠正工具")]
    public static CC3BlendShapesFixWindow OpenWindow()
    {
        Instance = GetWindow<CC3BlendShapesFixWindow>("BlendShapes纠正工具");
        Instance.Show();

        return Instance;
    }

    private CC3BlendShapesFixInspector inspector;
    public CC3BlendShapesFixInspector GetInspector()
    {
        if (inspector == null)
        {
            inspector = new CC3BlendShapesFixInspector();
        }

        return inspector;
    }

    public static void CloseWindow()
    {
        Instance.Close();
        Instance = null;
    }

    private void OnGUI()
    {
        if (inspector == null)
        {
            inspector = new CC3BlendShapesFixInspector();
        }

        inspector.OnGUI();
    }
}
